﻿using System;

public class NTypeCasting 
{
  Square(obj : object) : double {
    Math.Pow(obj :> double, 2)
  }
  
  public Cast() : void {
    def obj : object = 2.0;
    Console.WriteLine(Square(obj));
  }
}